import { defineStore } from 'pinia'
import { reactive } from 'vue'
export const usearticlestore = defineStore(
  'articlestore',
  () => {
    let tableData = reactive([
      {
        channelname: '新闻',
        channelothername: 'news'
      },
      {
        channelname: '热点',
        channelothername: 'hot'
      },
      {
        channelname: '美女',
        channelothername: 'girl'
      },
      {
        channelname: '帅哥',
        channelothername: 'boy'
      },
      {
        channelname: '社会',
        channelothername: 'social'
      },
      {
        channelname: '体育',
        channelothername: 'sports'
      },
      {
        channelname: '程序员',
        channelothername: 'wother'
      }
    ])
    return { tableData }
  },
  {
    persist: true //持久化处理
  }
)
